import { request } from '@/utils/request';
import type { UncollectedResult } from '@/api/house/model/uncollectedModel';

const Api = {
  UncollectedQuery: '/house.uncollected/queryUncollected',
  UncollectedSave: '/house.uncollected/saveUncollected',
  ArrivedInAccount: '/house.uncollected/account',
};

export function getUncollected() {
  return request.get<UncollectedResult>({
    url: Api.UncollectedQuery,
  });
}

export function saveUncollected(data: any) {
  return request.post({
    url: Api.UncollectedSave,
    params: data,
  });
}

export function account(data: any) {
  return request.post({
    url: Api.ArrivedInAccount,
    params: data,
  });
}
